package com.stedu.mall.common.service;

import com.stedu.mall.common.bean.Comment;
import com.stedu.mall.common.exception.SteduException;

import java.util.List;

public interface CommentService {
    boolean insert(Comment comment) throws SteduException;
    boolean delete(Integer id,Integer userId) throws SteduException;
    boolean update(Comment comment,Integer userId);
    Comment selectById(Integer id);
    List<Comment> selectByCondition(Comment condition);
    //算出所有数量
    Integer selectByGoodsId(Integer goodsId);
    //算出总分
    float selectScoreByGoodsId(Integer goodsId);
}